//
//  SEGFocusViewModel.h
//  Commom
//
//  Created by Clavis on 2019/7/29.
//

#import <Foundation/Foundation.h>

#if __has_include(<Commom/SEGText.h>)
#import <Commom/SEGText.h>
#else
#import "SEGText.h"
#endif

#define kFocusViewHeight 35     // FocusView的高度
#define bgViewHeight     54

@interface SEGFocusViewModel : NSObject

@property (nonatomic, copy) NSString *contentTitle; // 看点副标题
@property (nonatomic, copy) NSString *image; // 图片
@property (nonatomic, copy) NSString *channelName; // 频道名称
@property (nonatomic, copy) NSString *channelId; // 频道id
@property (nonatomic, assign) CGFloat widgetWidth; //空间总宽度

@end

@interface SEGFocusViewLayout : NSObject

@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, strong,readonly)SEGFocusViewModel *data;
@property (nonatomic, assign) CGFloat contentTitleLabelHeight;//contentTitleLabel 高度
@property (nonatomic, strong) SEGTextLayout *contentTitleLabelTextLayout;//contentTitleLabel 富文本布局
@property (nonatomic, assign) CGFloat channelNameLabelWidth;//channelNameLabel 宽度
@property (nonatomic, strong) SEGTextLayout *channelNameLabelTextLayout;//channelNameLabel 富文本布局

- (instancetype)initWithData:(SEGFocusViewModel *)data;
-(void)segFocusViewLayout;

@end
